package cn.edu.hubu.hubuhotel.controller;

import cn.edu.hubu.hubuhotel.service.RecordService;
import cn.edu.hubu.hubuhotel.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class RecordController {
    @Autowired
    private RecordService recordService;
    @RequestMapping("/record/get")
    public ResultVO get()
    {
        return recordService.getRecords();
    }
}
